package com.laiyizhan.common;

/**
 * 常量类
 * Created by folie
 */
public class Constants {
    /**
     * 默认一页的条数
     */
    public static final Integer DEFAULT_PAGE_SIZE = 10;
    /**
     * 保存状态 2
     */
    public static final int SAVE = 2;
    /**
     * 发布状态 1
     */
    public static final int PUBLISH = 1;
    /**
     * 日期格式化
     */
    public static final String DATE_FORMAT = "yyyy-MM-dd HH:mm";
    /**
     * 文章阅读请求地址
     */
    public static final String ARTICLE_VIEW = "/article/view/";
    /**
     * API版本
     */
    public static final String API_V = "1.0";
    /**
     * 10 分钟超时
     */
    public static final long REQ_TIMEOUT = 10 * 60 * 1000;
    /**
     * 5 分钟误差
     */
    public static final long REQ_TIME_5 = 5 * 60 * 1000;
    /**
     * 登录后的token前缀
     */
    public static final String TOKEN = "token_";
    /**
     * 验证码前缀
     */
    public static final String CODE = "code_";

    /**
     * 本地
     */
    public static final String RD = "rd";
    /**
     * 腾讯云
     */
    public static final String TCC = "tcc";
}
